
const {
	http
} = uni.$u


export const pageIndex = (params, config = {}) => http.get('/api/index/index', params, config) //首页接口
export const shipIndex = (params, config = {}) => http.get('/api/ship/index', params, config) // 首页推荐信息
export const shipInfo = (params, config = {}) => http.get('/api/ship/info', params, config) //  查询船舶信息

export const wageslist = (params, config = {}) => http.get('/api/ship/wageslist', params, config) // 薪资列表
export const vitainfo = (params, config = {}) => http.get('/api/ship/vitainfo', params, config) // 获取我的简历详情
export const shipList = (params, config = {}) => http.get('/api/ship/list', params, config) // 获取搜索列表

export const updatevita = (params, config = {}) => http.post('/api/ship/updatevita', params, config) // 提交/更新简历 

export const shipConfig = (params, config = {}) => http.get('/api/ship/config', params, config) // 配置信息
export const tokenRefresh = (params, config = {}) => http.get('/api/token/refresh', params, config) // 配置信息

export const userIndex = (params, config = {}) => http.get('/api/user/index', params, config) // 会员中心
export const userlogin = (params, config = {}) => http.post('/api/user/login', params, config) // 会员登录

export const miniProgramOauth = (params, config = {}) => http.post('/api/user/miniProgramOauth', params,
	config) // 小程序登录
export const userPhoneNumberBind = (params, config = {}) => http.post('/api/user/getMiniProgramUserPhoneNumberBind',
	params, config) // 小程序绑定手机号

export const userProfile = (params, config = {}) => http.post('/api/user/profile',
	params, config) // 修改会员信息
	

export const commonupload = (params, config = {}) => http.post('/api/common/upload', params, config) // 上传文件
export const exposure = (params, config = {}) => http.post('/api/ship/exposure', params, config) //  上传工资凭证

export const qiniuupload = (params, config = {}) => http.post('/addons/qiniu/index/params', params, config) //  七牛上传